/*
 * @version: vue3
 * @Author: lxs
 * @Date: 2022-04-27 11:05:35
 * @LastEditors: sueRimn
 * @LastEditTime: 2022-04-28 10:18:38
 */
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import { store, key } from "./store";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
// 统一导入el-icon图标
import * as Icons from "@element-plus/icons-vue";
/**
 * @name: 重点()注册全局组件
 * @param {*}
 * @return {*}
 */
const app = createApp(App);
app.use(router).use(store, key).use(ElementPlus).mount("#app");
Object.keys(Icons).forEach((key) => {
  app.component(key, Icons[key as keyof typeof Icons]);
});
// let person = {
//   name: "张三",
//   age: 14,
//   value: "123",
// };
// typeof获取类型
// type ty = typeof person;
// // 获取到key
// type ky = keyof ty
